<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>属性绑定指令</title>
    <style>
        .active{
            margin: auto;
        }
        p{
            height: 30px;
            background-color: bisque;
        }
    </style>
</head>
<body>
    <div id="app">
        <p class="box" :class="{active:bool}">洛璃</p>
        <p :style="{height:hValue+'px'}"></p>
        <button @click="hValue += 10">增高</button>
    </div>
    <script src="../vue2.js"></script>
    <script>
        const vm = new Vue({
            el:'#app',
            data(){
                return{
                    num: 1,
                    bool: true,
                    hValue: 30
                }
            },
            methons:{

            }
        })
    </script>
</body>
</html>